import request from '@/utils/request'

// 获取配置二维码
export function GoodDetail(data = {}) {
    return request({
        url: '/system/goods/' + data.goodId,
        method: "get",
    })
}

// 新增订单
export function CreateOrder(params) {
    return request({
        url: '/system/order/addOrderPay',
        method: "get",
        params
    })
}

// 新增订单
export function OrderGetCode(params) {
    return request({
        url: '/system/order/addOrderPay',
        method: "get",
        params
    })
}

// 订单状态查询
export function OrderStates(data) {
    return request({
        url: '/dyLiveData/pay/change/status',
        method: "post",
        data
    })
}

// 创建订单
export function GetPayWay(params) {
    return request({
        url: '/system/order/addOrderPay',
        method: "get",
        params
    })
}

// 新增支付 汇付 订单接口
export function HfuPayResult(data = {}) {
    return request({
        url: '/hfu/hfuPayResult',
        method: "post",
        data
    })
}

// 推荐列表
export function GetRecommendPage(params = {}) {
    return request({
        url: '/client/getRecommendPage',
        method: "get",
        params
    })
}

// 新品列表
export function GetNewPhotosPage(params = {}) {
    return request({
        url: '/client/getNewPhotosPage',
        method: "get",
        params
    })
}

// 推荐详情
export function GetRecommendDetailPage(params = {}) {
    return request({
        url: '/client/getRecommendDetailPage',
        method: "get",
        params
    })
}

// 获取banner
export function GetBanner(data = {}) {
    return request({
        url: '/apid/member/baner',
        method: "post",
        data
    })
}

// 获取主播
export function GetAnchor(data = {}) {
    return request({
        url: '/apid/member/anchorList',
        method: "post",
        data
    })
}

// 获取图库分页
export function GetPhotoList(params = {}) {
    return request({
        url: '/apid/member/photoList',
        method: "get",
        params
    })
}

// 获取主播动态
export function DynamicList(params = {}) {
    return request({
        url: '/apid/member/dynamicList',
        method: "get",
        params
    })
}


// 获取赞助列表
export function AnchorDynamicList(params = {}) {
    return request({
        url: '/apid/member/anchorDynamicList',
        method: "get",
        params
    })
}

// 获取主播详情
export function GetAnchorInfo(params = {}) {
    return request({
        url: '/apid/member/anchorInfo',
        method: "get",
        params
    })
}

// 获取订单列表
export function OrderList(params = {}) {
    return request({
        url: '/apid/member/orderList',
        method: "get",
        params
    })
}

// 收藏
export function GetCollect(params = {}) {
    return request({
        url: '/apid/action/getCollect',
        method: "get",
        params
    })
}

// 关注
export function UpdateFollow(data = {}) {
    return request({
        url: '/apid/follow/updateFollow',
        method: "post",
        data
    })
}

// 获取关注列表
export function GetFollow(params = {}) {
    return request({
        url: '/apid/follow/getFollow',
        method: "get",
        params
    })
}

// 解锁动态
export function UnLockActivity(data = {}) {
    return request({
        url: '/apid/dynamic/unLockActivity',
        method: "post",
        data
    })
}

// 获取商品列表
export function GetGoodsList(params = {}) {
    return request({
        url: '/apid/goods/getGoodsListData',
        method: "get",
        params
    })
}

// 获取商品详情
export function GetGoodsDetails(params = {}) {
    return request({
        url: '/apid/goods/getGoodsDetailsData',
        method: "get",
        params
    })
}



